home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 22 / AACD 22.iso / AACD / Online / Apache / lib / php / build / rules_pear.mk < prev    next >
Encoding:
Makefile  |  2001-03-06  |  2.8 KB  |  71 lines

  1. #  +----------------------------------------------------------------------+
  2. #  | PHP version 4.0                                                      |
  3. #  +----------------------------------------------------------------------+
  4. #  | Copyright (c) 1997, 1998, 1999, 2000 The PHP Group                   |
  5. #  +----------------------------------------------------------------------+
  6. #  | This source file is subject to version 2.02 of the PHP license,      |
  7. #  | that is bundled with this package in the file LICENSE, and is        |
  8. #  | available at through the world-wide-web at                           |
  9. #  | http://www.php.net/license/2_02.txt.                                 |
  10. #  | If you did not receive a copy of the PHP license and are unable to   |
  11. #  | obtain it through the world-wide-web, please send a note to          |
  12. #  | license@php.net so we can mail you a copy immediately.               |
  13. #  +----------------------------------------------------------------------+
  14. #  | Authors: Sascha Schumann <sascha@schumann.cx>                        |
  15. #  +----------------------------------------------------------------------+
  16. #
  17. # $Id: rules_pear.mk,v 1.12 2000/08/25 08:15:10 sas Exp $ 
  18. #
  19.  
  20. include $(top_srcdir)/build/rules_common.mk
  21.  
  22. install_targets = install-modules
  23.  
  24. all: all-recursive
  25. install: install-recursive
  26.  
  27. distclean-recursive depend-recursive clean-recursive all-recursive install-recursive:
  28.     @otarget=`echo $@|sed s/-recursive//`; \
  29.     list='$(SUBDIRS)'; for i in $$list; do \
  30.         target="$$otarget"; \
  31.         echo "Making $$target in $$i"; \
  32.         if test "$$i" = "."; then \
  33.             ok=yes; \
  34.             target="$$target-p"; \
  35.         fi; \
  36.         (cd $$i && $(MAKE) $$target) || exit 1; \
  37.     done; \
  38.     if test "$$otarget" = "all" && test -z '$(targets)'; then ok=yes; fi; \
  39.     if test "$$ok" != "yes"; then $(MAKE) "$$otarget-p" || exit 1; fi
  40.  
  41. all-p: $(targets)
  42. install-p: $(targets) $(install_targets)
  43. distclean-p depend-p clean-p:
  44.  
  45. depend: depend-recursive
  46.     @echo $(top_srcdir) $(top_builddir) $(srcdir) $(CPP) $(INCLUDES) $(EXTRA_INCLUDES) $(DEFS) $(CPPFLAGS) $(srcdir)/*.c *.c | $(AWK) -f $(top_srcdir)/build/mkdep.awk > $(builddir)/.deps || true
  47.  
  48. clean: clean-recursive clean-x
  49.  
  50. clean-x:
  51.     rm -f $(targets) *.lo *.slo *.la *.o $(CLEANFILES)
  52.     rm -rf .libs
  53.  
  54. distclean: distclean-recursive clean-x
  55.     rm -f config.cache config.log config.status config_vars.mk libtool \
  56.     php_config.h stamp-h Makefile build-defs.h php4.spec libphp4.module
  57.  
  58. install-modules:
  59.     @test -d modules && \
  60.     $(mkinstalldirs) $(moduledir) && \
  61.     echo "installing shared modules into $(moduledir)" && \
  62.     rm -f modules/*.la && \
  63.     cp modules/* $(moduledir) || true
  64.  
  65. include $(builddir)/.deps
  66.  
  67. .PHONY: all-recursive clean-recursive install-recursive \
  68. $(install_targets) install all clean depend depend-recursive shared \
  69. distclean-recursive distclean clean-x all-p install-p distclean-p \
  70. depend-p clean-p
  71.